-- GENERATED SPELL FOR [Winterfall Pathfinder] --


function spell0_7442(pUnit, Event) --@Faerie Fire,n/a--
pUnit:FullCastSpellOnTarget(16498,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7442', 2000, 1)
end

function spell1_7442(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7442', 629, 1)
end

function spell2_7442(pUnit, Event) --@Winterfall Firewater,Self--
pUnit:FullCastSpellOnTarget(17205,pUnit)
pUnit:RegisterEvent('Sorts_7442', 0, 1)
end

function Sorts_7442(pUnit, Event)
local choix_sorts_7442 = math.random(0, 2)
if choix_sorts_7442 == 0 then
pUnit:RegisterEvent('spell0_7442', 1, 1)
end
if choix_sorts_7442 == 1 then
pUnit:RegisterEvent('spell1_7442', 1, 1)
end
if choix_sorts_7442 == 2 then
pUnit:RegisterEvent('spell2_7442', 1, 1)
end
end

function mob7442_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7442', math.random(1500, 3000), 1)
end

function mob7442_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7442_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7442_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7442, 1, 'mob7442_Action')
RegisterUnitEvent(7442, 2, 'mob7442_Leave')
RegisterUnitEvent(7442, 3, 'mob7442_Kill')
RegisterUnitEvent(7442, 4, 'mob7442_Die')
